import request from '@/utils/request'

// 查询证书审核列表
export function listAudit(data, query) {
  return request({
    url: '/system/paperAudit/list',
    method: 'post',
    data,
    params: query
  })
}

// id: '', flag: ''
export function approved(params) {
  return request({
    url: '/system/paperAudit/approved',
    method: 'get',
    params: params
  })
}

// 查询证书审核详细
export function getAudit(id) {
  return request({
    url: '/system/paperAudit/' + id,
    method: 'get'
  })
}

// 新增证书审核
export function addAudit(data) {
  return request({
    url: '/system/paperAudit',
    method: 'post',
    data: data
  })
}

// 修改证书审核
export function updateAudit(data) {
  return request({
    url: '/system/paperAudit',
    method: 'put',
    data: data
  })
}

// 删除证书审核
export function delAudit(id) {
  return request({
    url: '/system/paperAudit/' + id,
    method: 'delete'
  })
}
